<?php
defined( '_JEXEC' ) or die;

// $db = JFactory::getDBO();

// $query = $db->getQuery(true);

// $query->select('activity_name')
// 		->from('#__explore_activities');

// $db->setQuery($query);

// $rows = $db->loadObjectList();

defined('_JEXEC') or die;

// Include the cypher functions only once
require_once __DIR__ . '/helper.php';

$user	= JFactory::getUser();
$layout = $params->get('layout', 'default');

$option	= JRequest::getVar('option', null);
$view	= JRequest::getVar('view', null);
$itemId	= JRequest::getInt('id', 0);

$images = array();
$images	= modCypherHelper::getImages($option, $view, $itemId);

$docs   = array();
$docs	= modCypherHelper::getDocs($option, $view, $itemId);

require JModuleHelper::getLayoutPath('mod_cypher', $layout);
